package com.main.entity;

import java.io.Serializable;

/**
 * 图书表
 *
 * @author admin
 */
public class Book implements Serializable {
    private static final long serialVersionUID = 8987530585258679945L;
    private int id;
    private String bookname;
    private String isbn;
    private String publisher;
    private String publisdate;
    private String price;
    private int userid;
    private Integer deleteFlag;

    public Book() {

    }

    public Book(int id, String bookname, String isbn, String publisher, String publisdate, String price, int userid, Integer deleteFlag) {
        super(); //没有继承父类，此属性无用
        this.id = id;
        this.bookname = bookname;
        this.isbn = isbn;
        this.publisher = publisher;
        this.publisdate = publisdate;
        this.price = price;
        this.userid = userid;
        this.deleteFlag = deleteFlag;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getPublisdate() {
        return publisdate;
    }

    public void setPublisdate(String publisdate) {
        this.publisdate = publisdate;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Book{");
        sb.append("id=").append(id);
        sb.append(", bookname='").append(bookname).append('\'');
        sb.append(", isbn='").append(isbn).append('\'');
        sb.append(", publisher='").append(publisher).append('\'');
        sb.append(", publisdate='").append(publisdate).append('\'');
        sb.append(", price='").append(price).append('\'');
        sb.append(", userid=").append(userid);
        sb.append(", deleteFlag=").append(deleteFlag);
        sb.append('}');
        return sb.toString();
    }
}
